// home模块
import request from '@/utils/request'

// 获取banner数据
export function getBanner () {
  return request('/home/banner', 'get', {})
}

/**
 * @description: 获取新鲜好物
 * @param {*}
 * @return {*}
 */
export const findNew = () => {
  return request('home/new', 'get')
}

/**
 * @description: 获取人气推荐
 * @param {*}
 * @return {*}
 */
export const findHot = () => {
  return request('home/hot', 'get')
}

/**
 * @description: 获取品牌
 * @param {*}
 * @return {*}
 */
export const findBrand = () => {
  return request('home/brand?limit=20', 'get')
}
